package com.bw.test;

import cn.hutool.core.util.NumberUtil;

import java.math.BigDecimal;

public class HT {


    public static void main(String[] args) {

        String priceStr = "100.02345";
        //保留两位小数
        String str = NumberUtil.roundStr(priceStr, 2);

        System.out.println(str);
    }
}
